From: emellor@leeni.uk.xensource.com Date: Sun, 7 May 2006 13:00:05 +0000 (+0100) Subject: Fix console runaway detection for the smallmem_neg test, following the changes X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~16108^2~7 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/success//%22http:/www.example.com/cgi/success/?a=commitdiff_plain;h=5afd6596ba4e152e3b15b1b8d9430dc032de723d;p=xen.git Fix console runaway detection for the smallmem_neg test, following the changes to have Console included as part of the Domain object. Signed-off-by: Ewan Mellor --- diff --git a/tools/xm-test/tests/create/16_create_smallmem_neg.py b/tools/xm-test/tests/create/16_create_smallmem_neg.py index 5bbaa6f704..9990add78c 100644 --- a/tools/xm-test/tests/create/16_create_smallmem_neg.py +++ b/tools/xm-test/tests/create/16_create_smallmem_neg.py @@ -14,11 +14,9 @@ domain = XmTestDomain(extraConfig={"memory": MEM, try: console = domain.start() + console.runCmd("ls") except DomainError, e: FAIL("Unable to start a domain with %i MB" % MEM) - -try: - console.runCmd("ls") except ConsoleError, e: if e.reason == RUNAWAY: print "Domain with %i MB has runaway console as expected" % MEM